//定义组件
define(function (require, exports, module) {

    var sTpl = require('components/dialog/index.html');
    var css = require('components/dialog/index.css');

    var myMixin = require('modules/mixins.js');

    var vueComponent = Vue.extend({
        template: sTpl,
        mixins: [myMixin],
        props: ['show', 'dialog-close'],
        data: function () {
            return {
                msg: '1234'
            }
        },
        methods: {
            close: function () {
                this.show = false;
                this.$dispatch('dialog-close', this.msg)
            }
        }
    });

    Vue.component('m-dialog', vueComponent); //都全局注册 同时exports
    module.exports = vueComponent;
});